home *** CD-ROM | disk | FTP | other *** search
- Path: surfnet.nl!sun4nl!xs4all!usenet
- From: maris@xs4all.nl (Anthony Moendir)
- Newsgroups: comp.lang.c
- Subject: Mouse doesn't work with serial programm
- Date: Wed, 28 Feb 1996 22:17:41 GMT
- Organization: XS4ALL, networking for the masses
- Message-ID: <4h1kq0$hcs@news.xs4all.nl>
- NNTP-Posting-Host: ztm01-03.dial.xs4all.nl
- X-Newsreader: Forte Free Agent 1.0.82
-
- I'm having trouble with my mouse which is not responding after this
- function while closing an serial communications programm. My mouse is
- at COM2 and my modem at COM1. Does anyone know how to fix this?
-
- Thanx Anthony
-
- void i_disable(void)
- {
- int c;
-
- disable();
- c = inportb(IMR) | ~IRQ3 | ~IRQ4;
- outportb(IMR, c);
- outportb(portbase + IER, 0);
- c = inportb(portbase + MCR) & ~MC_INT;
- outportb(portbase + MCR, c);
- enable();
- }
-
-